import 'dart:convert';

void main() {
  var jsonString = '''
  [
    {"score": 40},
    {"score": 80}
  ]
''';

  var scores = jsonDecode(jsonString);
  for (var o in scores) {
    print(o);
  }
  print(jsonEncode(scores));
}
